package com.ruoyi.members.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 基层工会会员对象 sys_union_members
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_union_members")
public class SysUnionMembers extends BaseEntity implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 会员主键id */
    @TableId(value = "members_id", type = IdType.AUTO)
    private Long membersId;

    /** 用户id */
    @Excel(name = "用户ID")
    private Long userId;

    /** 工会id */
    @Excel(name = "工会ID")
    private Long unionsId;

    /** 会员姓名 */
    @Excel(name = "会员姓名")
    private String membersName;

    /** 会员工号 */
    @Excel(name = "会员工号")
    private Long membersNum;

    /** 会员性别 0男 1女 2未知 */
    @Excel(name = "会员性别 0男 1女 2未知")
    private String membersSex;

    /** 会员联系电话 */
    @Excel(name = "会员联系电话")
    private String membersTel;

    /** 会员职位 0成员 1工会主席 2工会副主席 3组织委员 4宣传委员 5女工委员 6文体委员 7生活福利委员 */
    @Excel(name = "会员职位 0成员 1工会主席 2工会副主席 3组织委员 4宣传委员 5女工委员 6文体委员 7生活福利委员")
    private String membersPosition;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    /** 删除标识 0未删除 2已删除 */
    @TableLogic
    private String delFlag;

    @TableField(exist = false)
    private String unionsName;

    public void setMembersId(Long membersId) 
    {
        this.membersId = membersId;
    }

    public Long getMembersId() 
    {
        return membersId;
    }

    public void setUnionsId(Long unionsId) 
    {
        this.unionsId = unionsId;
    }

    public Long getUnionsId() 
    {
        return unionsId;
    }

    public void setMembersName(String membersName) 
    {
        this.membersName = membersName;
    }

    public String getMembersName() 
    {
        return membersName;
    }

    public void setMembersNum(Long membersNum) 
    {
        this.membersNum = membersNum;
    }

    public Long getMembersNum() 
    {
        return membersNum;
    }

    public void setMembersSex(String membersSex) 
    {
        this.membersSex = membersSex;
    }

    public String getMembersSex() 
    {
        return membersSex;
    }

    public void setMembersTel(String membersTel) 
    {
        this.membersTel = membersTel;
    }

    public String getMembersTel() 
    {
        return membersTel;
    }

    public void setMembersPosition(String membersPosition) 
    {
        this.membersPosition = membersPosition;
    }

    public String getMembersPosition() 
    {
        return membersPosition;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("membersId", getMembersId())
            .append("unionsId", getUnionsId())
            .append("membersName", getMembersName())
            .append("membersNum", getMembersNum())
            .append("membersSex", getMembersSex())
            .append("membersTel", getMembersTel())
            .append("membersPosition", getMembersPosition())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("remark", getRemark())
            .toString();
    }
}
